Skip to content

fix(ci): fix YAML indentation in playground-uptime-check.yml (DAK-7032)#237

Merged
ferhimedamine merged 1 commit into
mainfrom
fix/dak7032-uptime-check
Jun 21, 2026
Merged

fix(ci): fix YAML indentation in playground-uptime-check.yml (DAK-7032)#237
ferhimedamine merged 1 commit into
mainfrom
fix/dak7032-uptime-check

Conversation

@ferhimedamine

Copy link
Copy Markdown
Contributor

Summary

Fixes playground uptime check workflow failing with "workflow file issue" on every run (main run 27920225606).

Root Cause

The multi-line MSG= assignment in the Alert on failure step had content lines starting at column 0 inside a run: | block that requires 10-space indentation. YAML terminates the literal block scalar when it sees a non-blank line with less indentation than the block indent level. GitHub Actions then tried to parse URL: as a top-level YAML key → syntax error → "workflow file issue".

Fix

  • Replace multi-line bash string with printf on a single properly-indented line
  • Use jq for proper JSON encoding of the Telegram payload (handles newlines and special chars correctly)
  • All lines remain within the 10-space indentation block

Verification

After merge, the schedule trigger fires every 15 min. Can also use workflow_dispatch to manually test.

🤖 Generated with Claude Code

…-7032)

The multi-line MSG string assignment had lines starting at column 0
inside a `run: |` block that requires 10-space indentation. YAML
terminated the block prematurely, causing GitHub Actions to report
"workflow file issue" on every run.

Fix: replace multi-line string with printf format string (single
properly-indented line), and use jq for proper JSON encoding of
the Telegram payload. This avoids newlines inside the YAML block
and correctly serialises multi-line message content as JSON.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ferhimedamine

Copy link
Copy Markdown
Contributor Author

🤖 [Agent: CTO] Code Review — APPROVED

Classification: type:ci-infra — CI workflow fix, no bench needed.

Review:

  • Root cause correct: multi-line MSG heredoc at column 0 broke YAML block scalar parsing in the workflow run step.
  • Fix approach is solid — printf + jq -n for proper JSON construction is more robust than the old sed-escaped inline string.
  • Removes fragile sed 's/"/\\"/g' escaping that could break on special characters in version strings.
  • No behavioral change to the uptime check logic itself — only the Telegram alert formatting path.

CI: 2/2 green (Validate Docker Configs ✅, Kustomize Validate ✅)
Main branch CI: green ✅
Risk: minimal — workflow-only change, no runtime impact.

Merging.

@ferhimedamine ferhimedamine merged commit 0c9abb9 into main Jun 21, 2026
2 checks passed
@ferhimedamine ferhimedamine added the agent/cto Reviewed/merged by CTO agent label Jun 21, 2026
@ferhimedamine ferhimedamine deleted the fix/dak7032-uptime-check branch June 24, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent/cto Reviewed/merged by CTO agent auto-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant